package com.drawingtimer.admin.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 时间段暂停记录
 *
 * @author ballcat 2025-04-30 14:13:33
 */
@Data
@TableName("t_time_segment_pause")
@Schema(title = "时间段暂停记录")
public class TTimeSegmentPause {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@Schema(title = "ID")
	private Long id;

	/**
	 * 关联时间段记录ID
	 */
	@Schema(title = "关联时间段记录ID")
	private Long recordId;

	/**
	 * 暂停开始时间
	 */
	@Schema(title = "暂停开始时间")
	private LocalDateTime pauseStart;

	/**
	 * 暂停结束时间
	 */
	@Schema(title = "暂停结束时间")
	private LocalDateTime pauseEnd;

	/**
	 * 创建人
	 */
	@Schema(title = "创建人")
	private String createName;

	/**
	 * 暂停原因（可选）
	 */
	@Schema(title = "暂停原因（可选）")
	private String reason;

	@TableField(exist = false)
	private Long totalTimeConsumption;

}
